\documentclass{acm_proc_article-sp}
\usepackage{pifont,graphicx,subfigure}
\usepackage{comment,epsfig,subfigure,url,latexsym,cite,color}
\usepackage{algorithm}
\usepackage{algorithmic}
% \numberwithin{algorithm}{section}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{hyperref} 
\usepackage{breakurl}
\usepackage{balance}
%\usepackage{hyperref}
%\usepackage{amsmath}
%\usepackage{amsthm}

%\newtheorem{theorem}{Theorem}[section]
%\newtheorem{definition}[theorem]{Definition}
%\newtheorem{corollary}[theorem]{Corollary}
%\newtheorem{proposition}[theorem]{Proposition}
%\newtheorem{lemma}[theorem]{Lemma}
%\newtheorem{claim}[theorem]{Claim}
%\newtheorem{conjecture}[theorem]{Conjecture}
%\newtheorem{example}[theorem]{Example}
%\newtheorem{remark}[theorem]{Remark}
%\theoremstyle{definition}\newtheorem{example}[theorem]{Example}
%\theoremstyle{definition}\newtheorem{definition}[theorem]{Definition}
%\theoremstyle{observation}\newtheorem{observation}[theorem]{Observation}



\newtheorem{lemma}{Lemma}
\newtheorem{definition}{Definition}
%\newdef{definition}{Definition}
\newtheorem{example}{Example}
\newtheorem{corollary}[lemma]{Corollary}
\newtheorem{theorem}[lemma]{Theorem}
\newtheorem{claim}[lemma]{Claim}
\newtheorem{conjecture}{Conjecture}
\newtheorem{observation}{Observation}


%---------------------
%  SPACE SAVERS
%---------------------

\newcommand{\smallscale}{0.25}
\newcommand{\scale}{0.3}
\newcommand{\tsize}{\small} %table font size
\newcommand{\captionspace}{-15pt}
\newcommand{\subfigspace}{-10pt}

%\usepackage[small,compact]{titlesec}
%\usepackage[small,it]{caption}

\newcommand{\squishlist}{
 \begin{list}{$\bullet$}
  { \setlength{\itemsep}{0pt}
     \setlength{\parsep}{3pt}
     \setlength{\topsep}{3pt}
     \setlength{\partopsep}{0pt}
     \setlength{\leftmargin}{1.5em}
     \setlength{\labelwidth}{1em}
     \setlength{\labelsep}{0.5em} } }
\newcommand{\squishend}{
  \end{list}  }

%\newcommand{\squishlist}{
% \begin{enumerate}}
%\newcommand{\squishend}{
%  \end{enumerate}  }



\begin{document}

% ****************** TITLE ****************************************

\title{Streaming Algorithms for the Kolmogorov-Smirnov Test}

% ****************** AUTHORS **************************************

% You need the command \numberofauthors to handle the 'placement
% and alignment' of the authors beneath the title.
%
% For aesthetic reasons, we recommend 'three authors at a time'
% i.e. three 'name/affiliation blocks' be placed beneath the title.
%
% NOTE: You are NOT restricted in how many 'rows' of
% "name/affiliations" may appear. We just ask that you restrict
% the number of 'columns' to three.
%
% Because of the available 'opening page real-estate'
% we ask you to refrain from putting more than six authors
% (two rows with three columns) beneath the article title.
% More than six makes the first-page appear very cluttered indeed.
%
% Use the \alignauthor commands to handle the names
% and affiliations for an 'aesthetic maximum' of six authors.
% Add names, affiliations, addresses for
% the seventh etc. author(s) as the argument for the
% \additionalauthors command.
% These 'additional authors' will be output/set for you
% without further effort on your part as the last section in
% the body of your article BEFORE References or any Appendices.

\numberofauthors{1}
\author{
% You can go ahead and credit any number of authors here,
% e.g. one 'row of three' or two rows (consisting of one row of three
% and a second row of one, two or three).
%
% The command \alignauthor (no curly braces needed) should
% precede each author name, affiliation/snail-mail address and
% e-mail address. Additionally, tag each line of
% affiliation/address with \affaddr, and tag the
% e-mail address with \email.
%
% 1st. author
%\alignauthor Ashwin Lall
%\and Denison University
\alignauthor Paper 243
}

\maketitle

%\addauflag=1

\input{abstract}
\input{introduction}

\input{relatedwork}

\input{definition}

\input{onesample}

\input{twosample}

\input{pickingepsilon}

\input{evaluation}

\input{conclusions}

  \let\oldthebibliography=\thebibliography
  \let\endoldthebibliography=\endthebibliography
  \renewenvironment{thebibliography}[1]{%
    \begin{oldthebibliography}{#1}%
      \setlength{\parskip}{0ex}%
      \setlength{\itemsep}{0ex}%
  }%
  {%
    \end{oldthebibliography}%
  }
{ \footnotesize
\bibliographystyle{abbrv}
\bibliography{references}
}

\appendix

\input{appendix-extract}
\input{appendix-binsearch}
% \input{appendix-sampling-folklore}

\end{document}
